package lab02.Test04;

public class Employee {
    //属性：员工姓名、员工号码、员工基本薪水、员工薪水增长额
    public static void main(String[] args) {

    }
    public Employee(){

    }
    //姓名
    private String empName;

    //号码
    private String empNum;

    //员工基本工资
    private float empSalary;

    //员工工资增长额
    private float empAddsalary;

    //获取员工姓名
    public String getEmpName() {
        return empName;
    }

    //获取员工号码
    public String getEmpNum() {
        return empNum;
    }

    //获取员工基本薪水
    public float getEmpSalary() {
        return empSalary;
    }

    //计算薪水增长额
    public float getEmpAddsalary() {
        return empAddsalary;
    }

    //工资总额
    public float getEmpTotalsalaty(){
        return empSalary + empAddsalary;
    }

}



